$(document).ready(function () {
    $.get("getJobsEnterprise", function (msg) {
        $("#high").empty();
        for (var i = 0; i < msg.length; i++) {
            var obj = "<div class=\"lineBox\"></div>\n" +
                "<div class=\"divBox\">\n" +
                "<a href=\"job_info.jsp\"><img src=\"images/18.gif\" width=\"84\"/></a>\n" +
                "<p class=\"tit\"><a href='job_info.jsp?jid="+msg[i].jid+"&eid="+msg[i].enterprise.eid+"'>" + msg[i].jname + "</a></p>\n" +
                "<p class=\"sub\"><a href='company.jsp?eid="+msg[i].enterprise.eid+"&jid="+msg[i].jid+"'>" + msg[i].enterprise.ename + "</a></p>\n" +
                "<p class=\"num\"><span>"+msg[i].jmonthsalary+"</span></p>\n" +
                "</div>";

            $(obj).appendTo("#high");
        }

    });

    $("[name='Login']").on("click",function () {
        window.location = "login.jsp";
    });


    $(function () {
        $("#search_btn").on("click", function () {
            window.location = "searchJob.jsp"
        });
    });
});
